<?php
$this->breadcrumbs = array(
    'States' => array('admin'),
    'Manage',
);

$this->menu = array(
   // array('label' => 'List AmanState/AmanState/AmanState/AmanState', 'url' => array('index')),
    array('label' => 'Create AmanState/AmanState/AmanState/AmanState', 'url' => array('create')),
);


?>

<h1>Manage States</h1>



<?php
$this->widget('bootstrap.widgets.TbGridView', array(
    'id' => 'aman-state-grid',
    'itemsCssClass' => 'table-bordered items',
    'dataProvider' => $model->search(),
    'columns' => array(
        array(
            'class' => 'editable.EditableColumn',
            'name' => 'state_name',
            'headerHtmlOptions' => array('style' => 'width: 110px'),
            'editable' => array(//editable section
                //'apply'      => '$data->state_name != 4', //can't edit deleted users
                'url' => $this->createUrl('AmanState/updateState'),
                'placement' => 'right',
            )
        ),
        array(
            'class' => 'editable.EditableColumn',
            'name' => 'status',
            'headerHtmlOptions' => array('style' => 'width: 110px'),
            'editable' => array(//editable section
                //  'apply'      => '$data->status != 4', //can't edit deleted users
                'url' => $this->createUrl('AmanState/updateState'),
                'placement' => 'right',
            )
        ),
        array(
            'class' => 'bootstrap.widgets.TbButtonColumn',
        ),
    ),
));
?>